<div class="each-attach">
    <div>
        <% if (d.type == 1) { %>
            {{i18n-mainBg}}
        <% } else if (d.type == 2) {%>
            {{i18n-spliceBg}}
        <% } else if (d.type == 3) {%>
            {{i18n-themeDecoration}}
        <% } %>
    </div>
    <% if (d.list) { %>
        <div class="each-attach-img">
            <ul>
                <% _.each(d.list,function(option){ %>
                <li><div class="each-attach-img-div"><img src="<%=option.attachElementImg%>" /></div></li>
                <% })%>
            </ul>
        </div>
        <div class="each-attach-page-container margin-top-20">
            <div class="each-attach-page-total">{{i18n-total}}<%=d.list.length%>{{i18n-cnt}}
                <% if (d.type == 1) { %>
                {{i18n-mainBg}}
                <% } else if (d.type == 2) {%>
                {{i18n-spliceBg}}
                <% } else if (d.type == 3) {%>
                {{i18n-themeDecoration}}
                <% } %>
            </div>
            <% if (d.list.length >= 160) { %>
            <div class="ndp-page-wrapper" data-id="<%=d.type%>" name="plain-page" style="float:right;"></div>
            <% } %>
        </div>
        <% if (d.list.length > 16) { %>
        <div class="each-attach-unfold margin-top-20">{{i18n-expandAll}}&nbsp;&nbsp;<i class="glyphicon glyphicon-menu-down"></i></div>
        <% } %>
    <% } else { %>
        <div style="height:20px;">&nbsp;</div>
        <div class="no-attach"><img class="liImg" src="./imgs/design-element-no.png">{{i18n-noContent}}</div>
    <% } %>


</div>